package click

class WebAction {

//            a.Add(new BrowserAction("open", "http://www.baidu.com"));
//            a.Add(new BrowserAction("sleep", "5"));
//            a.Add(new BrowserAction("input", "id|kw", "山寨机"));
//            a.Add(new BrowserAction("sleep", "3"));
//            a.Add(new BrowserAction("click", "id|su"));
//            a.Add(new BrowserAction("sleep", "3"));
//            a.Add(new BrowserAction("click", "link|www.shanzhaiji.cn"));
//            a.Add(new BrowserAction("open", "www.shanzhaiji.cn"));
//            a.Add(new BrowserAction("sleep", "3"));
//            a.Add(new BrowserAction("clickad", "googleads.g.doubleclick.net"));
//            a.Add(new BrowserAction("sleep", "3"));
//            a.Add(new BrowserAction("quit", "quit"));

    String name = "";
    String target = "";
    String value = "";
    int sortid = 0;
    Task task;

    static constraints = {
        name(size:1..10,blank:false )
        target(size:1..500,blank:false )
        value(size:1..100,blank:true )
        sortid()
        task(nullable: true);
    }

    static mapping = {
        sortid sort  : "asc"
       
    }
    
    String toString(){
        "${name},${target},${value}"
    }
}
